$(document).ready(function(){(function(c){var e=new Date;e.setTime(e.getTime()+18E12);c.fn.extend({cookieNotify:function(){c.cookie("CNotify")?c(".globalNotifications").addClass("hidden"):c(".globalNotifications").removeClass("hidden")},cookieClose:function(){c.cookie("CNotify","Y",{expires:e,path:"/"});c(".globalNotifications").addClass("hidden")}})})(jQuery);$(".globalNotifications").length&&($(".globalNotifications .closeBtn .closeIcon").click(function(){$(".globalNotifications").slideUp(500,function(){$().cookieClose({}); originalStickyPosition=$(".ui-accordion-header-active").length?$(".ui-accordion-header-active").offset().top:0})}),$().cookieNotify({}))}); $(document).ready(function(){function c(a){var b=$(".animateNoti");b.addClass("animateShow");b.animate({width:"100%"},{duration:1E3,step:function(){b.animate({height:a},{duration:500,complete:function(){b.addClass("complete");b.clearQueue().stop();1<$(".notificationSlider .container").length&&($(".notificationSlider").delay(200).slick({dots:!0,infinite:!0,speed:300,appendDots:$(".notification-section .slick-dots-nav"),slidesToShow:1,slidesToScroll:1}),g());$(".slide-item.slick-slide .row.row-eq").height($(".notification-section").height()); setTimeout(function(){originalStickyPosition=$(".ui-accordion-header-active").length?$(".ui-accordion-header-active").offset().top:0},200)}})}})}function e(){var a=$(".animateNoti .container .notifications-wrap");f=0;$.each(a,function(){$(this).outerHeight()>f&&(f=$(this).outerHeight())});return f}function g(){var a=e();$(".animateNoti").animate({height:a})}function h(a){var b=$(".notification-section .image-wrapper .comp-img-generic .image-wrap").height(),k=$(".notification-section .image-wrapper"); b=a/2-b/2;var l=$(".row-eq .image-wrapper .comp-img-generic"),m=a-60,n=$(".notification-section .image-wrapper .verticalline");b+="px";m+="px";0<$(".msie9").length?(l.css({"padding-top":b,top:"0",position:"relative",transform:"translate(0, 0)"}),k.css("height",a)):0<$(".msie8").length&&(l.css({"padding-top":b,top:"0",position:"relative",transform:"translate(0, 0)"}),n.css("height",m),k.css("height",a))}var d=function(){var a=0;return function(b,k){clearTimeout(a);a=setTimeout(b,k)}}(),f=e();$(".animateNoti").addClass("animateBefore"); (0<$(".msie9").length||0<$(".msie8").length)&&h(f);0<$(".globalNotifications").length&&c(f);$(window).resize(function(){0<$(".notification-section.complete").length&&d(function(){g()},100)})}); $(document).ready(function(){var c="";$(".notificationSlider").on("beforeChange",function(e,g,h,d){c=h});$(".globalNotifications").off("click.notificationDTMClick","button.slick-prev, button.slick-next, .slick-dots button, .closeIcon").on("click.notificationDTMClick","button.slick-prev, button.slick-next, .slick-dots button, .closeIcon",function(){var e=$(this).hasClass("closeIcon")?"close":"button",g=$(this).attr("id")?$(this).attr("id"):"",h=$(this).attr("href")?$(this).attr("href"):"";if("close"=== e){type="link";var d=$.trim($(this).closest(".slick-slide").find(".title-comp, .text-comp").eq(0).text())}else d=$.trim($(".globalNotifications").find('.slick-slide[data-slick-index\x3d"'+c+'"]').find(".title-comp, .text-comp").eq(0).text());d=""!==d?" - "+d:d;d=$(this).closest("[data-shelf-name]").attr("data-shelf-name")+d;try{globalUtil.triggerDtmScript("button","Notification",e,d,g,h)}catch(f){}})});